﻿using Microsoft.Practices.Prism;
using Microsoft.Practices.Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace Ezpay.UI.ViewModels
{
    class HousingAgencyCustomerViewModel : BaseViewModel
    {
        public ICommand ShowCommand { get; private set; }

        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string PrimaryEmail { get; set; }

        public string CustomerID { get; set; }

        private IRegionManager _regionManager;
        public HousingAgencyCustomerViewModel(IRegionManager regionManager)
        {
            _regionManager = regionManager;
            ShowCommand = new RelayCommand(Show);
        }

        private void Show()
        {
            var query = new UriQuery();
            query.Add("ID", CustomerID);
            _regionManager.ShowInMain("CustomerViewModel" + query.ToString());
        }
    }
}
